<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>


<div style="padding:0;" class="content tabbed">
	<div id="wiz_create">
		<div class="box no-border">
			<div class="header">
				<h3 class="box-title">事件信息</h3>
				 
			</div>

			<form:form commandName="model" cssClass="validate" id="incidentForm"
				action="incident/incident/save">
				<form:hidden path="id" />
				<div style="position: relative;height: 100%">


					<table class="form-table">

						<tr>
							<td class="td1">事件标题：</td>
							<td class="td2"><textarea id="incidentTitle"
									class="required" name="title"
									style="white-space:nowrap;height:18px; overflow-y:hidden;max-width:80%;width:80%">${model.title }</textarea>
							</td>
						</tr>
						<tr>
							<td class="td1">事件描述：</td>
							<td class="td2"><textarea id="incidentDescription"
									style="height:50px;width:80%;" name="description">${model.description }</textarea>
							</td>
						</tr>
						<tr>
							<td class="td1">发生时间：</td>
							<td class="td2"><input type="datetime" id="happenTime"
								name="happenTime"
								value="<fmt:formatDate value="${model.happenTime }" pattern="yyyy-MM-dd HH:mm" />"></td>
						</tr>



					</table>

				</div>
			</form:form>

		</div>


	</div>
</div>


<isperp:buttonList showCloseBtn="false">
	<button onclick="submitIncidentFrom()" class="nui-mainbtn">保存并返回</button>

</isperp:buttonList>
<script type="text/javascript">
	function submitIncidentFrom() {

		isperp.submitForm({
			formId : "incidentForm",
			success : function() {
				isperp.toLocation("incident/incident/major/edit?processKey=incidentProcess&id=${model.id}&pcontrolid=incidentGrid");
			}
		});

	}
</script>